<template>
  <div class="home">
    <div class="nav">
      
      <Menu></Menu>
    </div>

    <div class="message">
      <div>
        <MyHeader></MyHeader>
      </div>
      <keep-alive>
        <router-view v-if="$route.meta.is"></router-view>
      </keep-alive>
       <router-view v-if="!$route.meta.is"></router-view>
    </div>
  </div>
</template>

<script>
import Menu from "../components/Menu.vue";
import MyHeader from "../components/My-header.vue";
export default {
  components: {
    Menu,
    MyHeader,
  },
  data() {
    return {};
  },
  methods: {},
};
</script>

<style lang='scss' scoped>
@import "../../node_modules/font-awesome/css/font-awesome.min.css";

.home {
  width: 100%;
  height: 100vh;
  display: flex;
  .nav {
    width: 20%;

    background-color: #021626;
    .logo {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 10px;
      margin-bottom: 10px;
    }
    .menu {
      margin: 0;
      padding: 0;
      list-style: none;
      li {
        width: 100%;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;

        &.active {
          background-color: orange;
        }
        a {
          width: 100%;
          height: 100%;
          padding: 5px 20px;
          box-sizing: border-box;
          color: white;
          span {
            margin: 0 90px 0 10px;
          }
        }
      }
    }
  }
  .message {
    width: 80%;
  }
}
</style>